  <table border="0" width="600">
    <tr>

    <td><img src="images/logo.gif" width="200" height="40"></td>
      <td align="right" width="100%" valign="bottom"><span class="big">Administration
	     Area</span></td>
    </tr>
  </table>
  <br>

<table width="600" border="0">
  <tr>
    <td width="100%">Welcome, it's
      <?php
$query = "SELECT dateformatlong FROM wps_dateformat LIMIT 1";
$result = mysql_query($query);
$row = mysql_fetch_object ($result);
$dateformatlong = $row->dateformatlong;
$query = "SELECT * FROM wps_timediff";
$result = mysql_query($query);
$row = mysql_fetch_object ($result);
$time_offset = $row->timediff * 60 * 60;
echo strftime($dateformatlong, time() + $time_offset);
//print " Your PHP version is: ".phpversion();?>
    </td>
    <td>
      <?php
if (isset($ID) && $ID!="") {
	print "Logged&nbsp;in&nbsp;as:&nbsp;<b>$login</b>,&nbsp;<a href=\"index.php?option=logout\">logout</a>\n";
} else {
	print "Not&nbsp;logged&nbsp;in,&nbsp;<a href=\"index.php\">login</a>\n";
}
?></td>
  </tr>
</table>
